package priv.pront.code.lanqiao.competition.course.date0330;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class 交换次数 {
    static int sbi, sti, sai, bl = 0, tl = 0, al = 0;
    static List<Integer> aList = new ArrayList<>();
    static List<Integer> bList = new ArrayList<>();
    static List<Integer> tList = new ArrayList<>();

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] chs = scanner.next().toCharArray();
        char curChar = ' ';
        for (int i = 0; i < chs.length; i++) {
            if (curChar == ' ') {
                curChar = chs[i];
            }
            if (chs[i] == curChar && chs[i] =='A') {
//                al = Math.max(al,)
            }else if(chs[i] == curChar && chs[i] =='B'){

            }else if(chs[i] == curChar && chs[i] =='C'){}
            if (i == 'T') {
                tList.add(i);
            } else if (i == 'A') {
                aList.add(i);
            } else {
                bList.add(i);
            }
        }
    }
}
